﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Data;
using System.Data.SqlClient;



namespace BanmaytinhDAL
{
    public class HangsanxuatInfo
    {
        private string _Mahangsanxuat;
        private string _Tenhangsanxuat;
       


        public string Mahangsanxuat{get {return _Mahangsanxuat;} set{ _Mahangsanxuat = value; } }
        public string Tenhangsanxuat { get { return _Tenhangsanxuat; } set { _Tenhangsanxuat = value; } }
       

        public HangsanxuatInfo HangsanxuatIDataReader(IDataReader dr)
        {
            BanmaytinhDAL.HangsanxuatInfo obj = new BanmaytinhDAL.HangsanxuatInfo();
            obj.Mahangsanxuat = (dr["Mahangsanxuat"] is DBNull) ? string.Empty : dr["Mahangsanxuat"].ToString();
            obj.Tenhangsanxuat = (dr["Tenhangsanxuat"] is DBNull) ? string.Empty : dr["Tenhangsanxuat"].ToString();
            
            return obj;

        
        }
    }
}
